#ifndef _MDSH_H
#define _MDSH_H
#include "main.h"

struct mdsh_cmd {
	void (*func)(void);
};

#define __used	__attribute__((__used__))
#define MDSH_CMD_INIT(fn)					\
	static struct mdsh_cmd __cmd_##fn	__used	\
	__attribute__((__section__(".mdshell.sct"))) = { fn }


extern int mdsh_put(void *table, int table_sz);
extern void mdsh_creat(char *pvParameters);

#endif
